<?php

namespace app\common\model;

use think\Model;

/**
 * SDK使用日志模型
 */
class SDKUsageLog extends Model
{
    /**
     * 数据表名
     */
    protected $table = 'gf_sdk_usage_log';
    
    /**
     * 主键
     */
    protected $pk = 'id';
    
    /**
     * 自动时间戳
     */
    protected $autoWriteTimestamp = false;
    
    /**
     * 时间字段
     */
    protected $createTime = 'created_at';
    
    /**
     * 更新时间字段
     */
    protected $updateTime = false;
    
    /**
     * 字段信息
     */
    protected $schema = [
        'id' => 'int',
        'appkey' => 'string',
        'endpoint' => 'string',
        'status' => 'string',
        'response_time' => 'float',
        'error_message' => 'string',
        'platform' => 'string',
        'sdk_version' => 'string',
        'created_at' => 'datetime'
    ];
}